-- GENERATED SPELL FOR [Conquest Hold Legionnaire] --


function spell0_26839(pUnit, Event) --@Demoralizing Shout,Self--
pUnit:FullCastSpellOnTarget(61044,pUnit)
pUnit:RegisterEvent('Sorts_26839', 15290, 1)
end

function spell1_26839(pUnit, Event) --@Hamstring,n/a--
pUnit:FullCastSpellOnTarget(9080,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26839', 10310, 1)
end

function Sorts_26839(pUnit, Event)
local choix_sorts_26839 = math.random(0, 1)
if choix_sorts_26839 == 0 then
pUnit:RegisterEvent('spell0_26839', 1, 1)
end
if choix_sorts_26839 == 1 then
pUnit:RegisterEvent('spell1_26839', 1, 1)
end
end

function mob26839_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_26839', math.random(1500, 3000), 1)
end

function mob26839_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26839_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26839_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(26839, 1, 'mob26839_Action')
RegisterUnitEvent(26839, 2, 'mob26839_Leave')
RegisterUnitEvent(26839, 3, 'mob26839_Kill')
RegisterUnitEvent(26839, 4, 'mob26839_Die')
